.class Lcom/estrongs/android/taskmanager/v;
.super Lcom/estrongs/android/taskmanager/tools/d;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/u;

.field private final synthetic b:Landroid/content/pm/ApplicationInfo;

.field private final synthetic c:Ljava/util/List;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/u;Landroid/content/pm/ApplicationInfo;Ljava/util/List;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/v;->a:Lcom/estrongs/android/taskmanager/u;

    iput-object p2, p0, Lcom/estrongs/android/taskmanager/v;->b:Landroid/content/pm/ApplicationInfo;

    iput-object p3, p0, Lcom/estrongs/android/taskmanager/v;->c:Ljava/util/List;

    invoke-direct {p0}, Lcom/estrongs/android/taskmanager/tools/d;-><init>()V

    return-void
.end method


# virtual methods
.method public onGetStatsCompleted(Landroid/content/pm/PackageStats;Z)V
    .locals 5

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/v;->a:Lcom/estrongs/android/taskmanager/u;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/u;->a(Lcom/estrongs/android/taskmanager/u;)Lcom/estrongs/android/taskmanager/CacheManWrapper;

    move-result-object v0

    iget v1, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->statsGotCount:I

    add-int/lit8 v1, v1, 0x1

    iput v1, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->statsGotCount:I

    iget-wide v0, p1, Landroid/content/pm/PackageStats;->cacheSize:J

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/v;->a:Lcom/estrongs/android/taskmanager/u;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/u;->a(Lcom/estrongs/android/taskmanager/u;)Lcom/estrongs/android/taskmanager/CacheManWrapper;

    move-result-object v0

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mList:Ljava/util/List;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/v;->b:Landroid/content/pm/ApplicationInfo;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/v;->a:Lcom/estrongs/android/taskmanager/u;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/u;->a(Lcom/estrongs/android/taskmanager/u;)Lcom/estrongs/android/taskmanager/CacheManWrapper;

    move-result-object v0

    iget-wide v1, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->totalCacheSize:J

    iget-wide v3, p1, Landroid/content/pm/PackageStats;->cacheSize:J

    add-long/2addr v1, v3

    iput-wide v1, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->totalCacheSize:J

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/v;->a:Lcom/estrongs/android/taskmanager/u;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/u;->a(Lcom/estrongs/android/taskmanager/u;)Lcom/estrongs/android/taskmanager/CacheManWrapper;

    move-result-object v0

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->pkgStatsMap:Ljava/util/HashMap;

    iget-object v1, p1, Landroid/content/pm/PackageStats;->packageName:Ljava/lang/String;

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/v;->a:Lcom/estrongs/android/taskmanager/u;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/u;->a(Lcom/estrongs/android/taskmanager/u;)Lcom/estrongs/android/taskmanager/CacheManWrapper;

    move-result-object v0

    iget v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->statsGotCount:I

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/v;->c:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/v;->a:Lcom/estrongs/android/taskmanager/u;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/u;->a(Lcom/estrongs/android/taskmanager/u;)Lcom/estrongs/android/taskmanager/CacheManWrapper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/CacheManWrapper;->onDataPrepared()V

    :cond_1
    return-void
.end method
